package il.ac.tau.cvws.scrabblesidekick.server.util.exception;

public class ScrabbleSidekickException extends Exception
{
	private static final long serialVersionUID = 1L;
	
	private ExceptionTypes type;
	private String msg;
	
	public ScrabbleSidekickException(ExceptionTypes type, String msg)
	{
		this(type, msg, null);
	}
	
	public ScrabbleSidekickException(ExceptionTypes type, String msg, Throwable cause)
	{
		super(cause);
		
		this.type = type;
		this.msg  = msg;
	}
	
	public ExceptionTypes getType()
	{
		return type;
	}
	
	public String getMSG()
	{
		return msg;
	}
}
